
class Eat {
  void eat () {
    print('\x1B[104m eat \x1B[0m');
  }
}

class Sleep {
  void sleep () {
    print('sleep');
  }
}

class WithEvery with Eat, Sleep {
  int age;
  String name;
  WithEvery(this.age, this.name);

  void sayhi () {
    print('hi');
  }
}

runWith () {
  var p = WithEvery(15, 'sdf');
  p.eat();    //并不会报错
  p.sleep();    //并不会报错
  p.sayhi();    //并不会报错
}
